{% extends "base.html" %}

{% block main %}
<!-- Main Page Content and Sidebar -->
 
  <div class="row">
 
    <!-- Contact Details -->
  <div class="row">
 
    <!-- Contact Details -->
    <div class="large-9 columns">
 
      <div class="section-container tabs" data-section>
        <section class="section">
          <h5 class="title"><a href="#panel1">{{ form_title }}</a></h5>
          <div class="content" data-slug="panel1">
            <form action="." method="post">{% csrf_token %}
              {% for field in sform %}
              <div class="row collapse">
                <div class="large-2 columns">
                  <label class="inline">{{ field.label_tag }}</label>
                </div>
                <div class="large-10 columns">
                  {{ field }}
                  {% if field.errors %}
                  <small class="error">{% for e in  field.errors%}  
                  {{ e }} 
                  {% endfor %}
                  </small>
                  {% endif %}
                </div>
              </div>
              {% endfor %}
              <button type="submit" class="radius button">{{ button_label }}</button>
            </form>
          </div>
        </section>
      </div>
    </div>
 
 
    <!-- End Contact Details -->
 
 
    <!-- Sidebar -->
 
 
    <div class="large-3 columns">
      <h5>what does it do?</h5>
      <!-- Clicking this placeholder fires the mapModal Reveal modal -->
      <p>
		Here is some text which describe benefits of registration in system and some basic rules. 
      </p>
    </div>
    <!-- End Sidebar -->
  </div>
 
  <!-- End Main Content and Sidebar -->
{% endblock %}